<?php


class Location {
    private $id_loc;
    private $id_immeu;
    private $nom_loc;
    private $montant_loc;
    private $tva_loc;
    private $appel_loc;
    private $statut_loc;
    private $descp_loc;
    private $surface_loc;
    private $nb_piece_loc;
    private $nb_chambre_loc;
    private $meuble_loc;
    private $exposition_loc;
    private $encaissement_loc;
    private $type_loc;

    public function __construct($valeur = array()){
        if(!empty($valeur)){
            $this->affecte($valeur);

        }
    }

    public function affecte($donnees){
        foreach ($donnees as  $attribut => $valeur){
            switch($attribut){
                case 'id_immeu': $this->setIdImmeu($valeur);
                    break;
                case 'id_loc': $this->setIdLoc($valeur);
                    break;
                case 'montant_loc': $this->setMontantLoc($valeur);
                    break;
                case 'tva_loc': $this->setTvaLoc($valeur);
                    break;
                case 'nom_loc': $this->setNomLoc($valeur);
                    break;
                case 'descp_loc': $this->setDescpLoc($valeur);
                    break;
                case 'appel_loc': $this->setAppelLoc($valeur);
                    break;
                case 'statut_loc': $this->setStatutLoc($valeur);
                    break;
                case 'surface_loc': $this->setSurfaceLoc($valeur);
                    break;
                case 'nb_piece_loc': $this->setNbPieceLoc($valeur);
                    break;
                case 'nb_chambre_loc': $this->setNbChambreLoc($valeur);
                    break;
                case 'meuble_loc': $this->setMeubleLoc($valeur);
                    break;
                case 'exposition_loc': $this->setExpositionLoc($valeur);
                    break;
                case 'encaissement_loc': $this->setEncaissementLoc($valeur);
                    break;
                case 'type_loc': $this->setTypeLoc($valeur);
                    break;

            }

        }
    }




    /**
     * @param mixed $tva_loc
     */
    public function setTvaLoc($tva_loc)
    {
        $this->tva_loc = $tva_loc;
    }

    /**
     * @return mixed
     */
    public function getTvaLoc()
    {
        return $this->tva_loc;
    }

    /**
     * @param mixed $appel_loc
     */
    public function setAppelLoc($appel_loc)
    {
        $this->appel_loc = $appel_loc;
    }

    /**
     * @return mixed
     */
    public function getAppelLoc()
    {
        return $this->appel_loc;
    }

    /**
     * @param mixed $descp_loc
     */
    public function setDescpLoc($descp_loc)
    {
        $this->descp_loc = $descp_loc;
    }

    /**
     * @return mixed
     */
    public function getDescpLoc()
    {
        return $this->descp_loc;
    }

    /**
     * @param mixed $encaissement_loc
     */
    public function setEncaissementLoc($encaissement_loc)
    {
        $this->encaissement_loc = $encaissement_loc;
    }

    /**
     * @return mixed
     */
    public function getEncaissementLoc()
    {
        return $this->encaissement_loc;
    }

    /**
     * @param mixed $exposition_loc
     */
    public function setExpositionLoc($exposition_loc)
    {
        $this->exposition_loc = $exposition_loc;
    }

    /**
     * @return mixed
     */
    public function getExpositionLoc()
    {
        return $this->exposition_loc;
    }

    /**
     * @param mixed $id_immeu
     */
    public function setIdImmeu($id_immeu)
    {
        $this->id_immeu = $id_immeu;
    }

    /**
     * @return mixed
     */
    public function getIdImmeu()
    {
        return $this->id_immeu;
    }

    /**
     * @param mixed $id_loc
     */
    public function setIdLoc($id_loc)
    {
        $this->id_loc = $id_loc;
    }

    /**
     * @return mixed
     */
    public function getIdLoc()
    {
        return $this->id_loc;
    }

    /**
     * @param mixed $meuble_loc
     */
    public function setMeubleLoc($meuble_loc)
    {
        $this->meuble_loc = $meuble_loc;
    }

    /**
     * @return mixed
     */
    public function getMeubleLoc()
    {
        return $this->meuble_loc;
    }

    /**
     * @param mixed $montant_loc
     */
    public function setMontantLoc($montant_loc)
    {
        $this->montant_loc = $montant_loc;
    }

    /**
     * @return mixed
     */
    public function getMontantLoc()
    {
        return $this->montant_loc;
    }

    /**
     * @param mixed $nb_chambre_loc
     */
    public function setNbChambreLoc($nb_chambre_loc)
    {
        $this->nb_chambre_loc = $nb_chambre_loc;
    }

    /**
     * @return mixed
     */
    public function getNbChambreLoc()
    {
        return $this->nb_chambre_loc;
    }

    /**
     * @param mixed $nb_piece_loc
     */
    public function setNbPieceLoc($nb_piece_loc)
    {
        $this->nb_piece_loc = $nb_piece_loc;
    }

    /**
     * @return mixed
     */
    public function getNbPieceLoc()
    {
        return $this->nb_piece_loc;
    }

    /**
     * @param mixed $nom_loc
     */
    public function setNomLoc($nom_loc)
    {
        $this->nom_loc = $nom_loc;
    }

    /**
     * @return mixed
     */
    public function getNomLoc()
    {
        return $this->nom_loc;
    }

    /**
     * @param mixed $statut_loc
     */
    public function setStatutLoc($statut_loc)
    {
        $this->statut_loc = $statut_loc;
    }

    /**
     * @return mixed
     */
    public function getStatutLoc()
    {
        return $this->statut_loc;
    }

    /**
     * @param mixed $surface_loc
     */
    public function setSurfaceLoc($surface_loc)
    {
        $this->surface_loc = $surface_loc;
    }

    /**
     * @return mixed
     */
    public function getSurfaceLoc()
    {
        return $this->surface_loc;
    }

    /**
     * @param mixed $type_loc
     */
    public function setTypeLoc($type_loc)
    {
        $this->type_loc = $type_loc;
    }

    /**
     * @return mixed
     */
    public function getTypeLoc()
    {
        return $this->type_loc;
    }






} 